/**
 * 
 */
package com.pocketsweet.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;

/**
 * @author bobhu 消费记录
 */
@AVClassName("MLConsumeRecord")
public class MLConsumeRecord extends AVObject {
	public final static String MONEY = "money"; // 钱
	public final static String TYPE = "type";// 消费还是充值，0消费，1充值
	public final static String REMARK = "remark";// 备注
	public final static String SN = "sn";// 序列号
	public static final String SYS_INFO = "sys_info";
	public static final String VERSION = "version";
	public final static String DEVICE = "device";// 设备,0:IOS,1:Android
	public final static String USER = "user";// 用户

	public MLConsumeRecord() {

	}

	public int getMoney() {
		return super.getInt(MONEY);
	}

	public void setMoney(int value) {
		super.put(MONEY, value);
	}

	public int getType() {
		return super.getInt(TYPE);
	}

	public void setType(int value) {
		super.put(TYPE, value);
	}

	public String getRemark() {
		return super.getString(REMARK);
	}

	public void setRemark(String value) {
		super.put(REMARK, value);
	}

	public String getSn() {
		return super.getString(SN);
	}

	public void setSn(String value) {
		super.put(SN, value);
	}
	public int getDevice() {
		return super.getInt(DEVICE);
	}
	
	public void setDevice(int value) {
		super.put(DEVICE, value);
	}

	// 外键
	public MLUser getUser() {
		return (MLUser) super.getAVUser(USER);
	}

	public void setuser(MLUser user) {
		super.put(USER, user);
	}
	
	public String getVersion() {
		return super.getString(VERSION);
	}

	public void setVersion(String value) {
		super.put(VERSION, value);
	}
	
	public String getSysInfo() {
		return super.getString(SYS_INFO);
	}

	public void setSysInfo(String value) {
		super.put(SYS_INFO, value);
	}
}
